// models/file.go
package models

import (
	"time"
)

// File represents a file or directory
type File struct {
	ID        string    `json:"id"`
	Name      string    `json:"name"`
	Size      int64     `json:"size"`
	Type      string    `json:"type"`   // "file" or "folder"
	Parent    string    `json:"parent"` // parent directory ID
	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt"`
	MD5       string    `json:"md5,omitempty"` // for files
	Path      string    `json:"-"`             // server-side path
}
